projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cab7b2
)
igc: Stop writing when more than 99 points in task route.
author
oliskoli
<oliskoli>
Mon, 18 Jun 2007 20:14:47 +0000
(20:14 +0000)
committer
oliskoli
<oliskoli>
Mon, 18 Jun 2007 20:14:47 +0000
(20:14 +0000)
igc.c
patch
|
blob
|
history
diff --git
a/igc.c
b/igc.c
index bdb7748874ad3118c4afc406afd7be9f6e102d4b..94d50d0d75b56caaa39cb6c52e53d093894ac1bd 100644
(file)
--- a/
igc.c
+++ b/
igc.c
@@
-628,6
+628,9
@@
static void wr_task_hdr(const route_head * rte)
if (num_tps < 0) {
fatal(MYNAME ": Too few waypoints in task route\n");
}
+ else if (num_tps > 99) {
+ fatal(MYNAME ": Too much waypoints (more than 99) in task route.\n");
+ }
// Gather data to write to the task identification (first) record
rte_time = wpt->creation_time ? wpt->creation_time : current_time();
if (NULL == (tm = gmtime(&rte_time))) {